package com.effectivsocial.service.api;

import java.util.List;

import org.springframework.data.domain.Pageable;


/**
 * @author Dhrubo
 *
 */
public interface BusinessService<T, ID> {

	public void save(T t);
	public void save(List<T> entities);
	
	
	public T findOne(ID id);
	public List<T> findByDeleted(Pageable pageable , boolean deleted);
	
	
	
	public void delete(T entity);
	public void delete(List<T> entities);
	public void purge(List<T> entities);
	
	public void update(T entity);
	
	
	
}
